<template>
  <div class="box">
    <h1>Grandson</h1>
    {{age}}
    {{sex}}
    {{getData2()}}
    <button @click="$emit('abc')">调用爷组件的自定义事件</button>
  </div>
</template>

<script>
export default {
  name: "Grandson",
  props: ["age" , "sex" , "getData2" , "getData3" , "count"]
};
</script>

<style scoped>
.box {
  background: deepskyblue;
}
</style>
